package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 收藏实体类
 */
@Data
@Schema(description = "收藏实体类")
public class Collection {
    @TableId(type = IdType.AUTO)
    @Schema(description = "自增主键")
    private Long id;
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "图书ID")
    private Long bookId;
    
    @Schema(description = "收藏时间")
    private Timestamp createTime;
} 